/**
 * @mbggenerated
 * @author kehui
 */
package com.mall.pojo;

import java.util.Date;

public class Trade {
    /**
     * trade.id
     * 
     * BIGINT(19)
     *
     * @mbggenerated
     */
    private Long id;

    /**
     * trade.mall_id
     * 
     * BIGINT(19)
     *
     * @mbggenerated
     */
    private Long mallId;

    /**
     * trade.seller_id
     * 卖家id
     * BIGINT(19)
     *
     * @mbggenerated
     */
    private Long sellerId;

    /**
     * trade.price
     * 
     * BIGINT(19)
     *
     * @mbggenerated
     */
    private Long price;

    /**
     * trade.buy_count
     * 商品总数
     * INTEGER(10)
     *
     * @mbggenerated
     */
    private Integer buyCount;

    /**
     * trade.discount_price
     * 折扣价格
     * BIGINT(19)
     *
     * @mbggenerated
     */
    private Long discountPrice;

    /**
     * trade.discount_mess
     * 优惠信息
     * VARCHAR(100)
     *
     * @mbggenerated
     */
    private String discountMess;

    /**
     * trade.status
     * 0:下单未付款 -1：订单手动取消 -2：订单自动过期取消 1：已付款 4：交易完成,6:用户评价
     * INTEGER(10)
     *
     * @mbggenerated
     */
    private Integer status;

    /**
     * trade.type
     * 订单类型：0:普通购买7:二维火9:旅游民宿4：折扣5:发送验证码的团购6：代金券  12:微商 88：充值 89余额支付
     * INTEGER(10)
     *
     * @mbggenerated
     */
    private Integer type;

    /**
     * trade.gmt_create
     * 
     * TIMESTAMP(19)
     *
     * @mbggenerated
     */
    private Date gmtCreate;

    /**
     * trade.gmt_modify
     * 
     * TIMESTAMP(19)
     *
     * @mbggenerated
     */
    private Date gmtModify;

    /**
     * trade.attribute
     * 
     * VARCHAR(3000)
     *
     * @mbggenerated
     */
    private String attribute;

    /**
     * trade.buy_user_id
     * 
     * BIGINT(19)
     *
     * @mbggenerated
     */
    private Long buyUserId;

    /**
     * trade.is_main
     * 1:主订单 2：子订单
     * INTEGER(10)
     *
     * @mbggenerated
     */
    private Integer isMain;

    /**
     * trade.buy_item_id
     * 宝贝id
     * BIGINT(19)
     *
     * @mbggenerated
     */
    private Long buyItemId;

    /**
     * trade.buy_item_type
     * 
     * INTEGER(10)
     *
     * @mbggenerated
     */
    private Integer buyItemType;

    /**
     * trade.third_party_id
     * 第三方商品id
     * BIGINT(19)
     *
     * @mbggenerated
     */
    private Long thirdPartyId;

    /**
     * trade.parent_id
     * 上级id
     * BIGINT(19)
     *
     * @mbggenerated
     */
    private Long parentId;

    /**
     * trade.logistics_id
     * 物流单号
     * VARCHAR(200)
     *
     * @mbggenerated
     */
    private String logisticsId;

    /**
     * trade.logistics_company
     * 物流公司
     * VARCHAR(50)
     *
     * @mbggenerated
     */
    private String logisticsCompany;

    /**
     * trade.logistics_status
     * 物流状态0：付款未发货，2：送货中4:确认收货
     * INTEGER(10)
     *
     * @mbggenerated
     */
    private Integer logisticsStatus;

    /**
     * trade.trade_no
     * 
     * VARCHAR(100)
     *
     * @mbggenerated
     */
    private String tradeNo;

    /**
     * trade.out_trade_no
     * 
     * VARCHAR(50)
     *
     * @mbggenerated
     */
    private String outTradeNo;

    /**
     * trade.pay_type
     * 1:微信;2支付宝 3余额支付
     * INTEGER(10)
     *
     * @mbggenerated
     */
    private Integer payType;

    /**
     * trade.message
     * 买家留言
     * VARCHAR(200)
     *
     * @mbggenerated
     */
    private String message;

    /**
     * trade.refund
     * 0:初始值，2:用户提交退款,4:手动完成退款
     * INTEGER(10)
     *
     * @mbggenerated
     */
    private Integer refund;

    /**
     * trade.refund_reason
     * 退款原因
     * VARCHAR(1000)
     *
     * @mbggenerated
     */
    private String refundReason;

    /**
     * trade.need_invoice
     * 0：不需要，1：需要
     * INTEGER(10)
     *
     * @mbggenerated
     */
    private Integer needInvoice;

    /**
     * trade.invoice_type
     * 0:电子发票，1：普通发票，2:增值税专用发票
     * INTEGER(10)
     *
     * @mbggenerated
     */
    private Integer invoiceType;

    /**
     * trade.invoice_category
     * 1:个人发票 2：单位发票
     * INTEGER(10)
     *
     * @mbggenerated
     */
    private Integer invoiceCategory;

    /**
     * trade.invoice_title
     * 发票抬头
     * VARCHAR(100)
     *
     * @mbggenerated
     */
    private String invoiceTitle;

    /**
     * trade.invoice_content
     * 发票内容1:饮食 2:住宿
     * INTEGER(10)
     *
     * @mbggenerated
     */
    private Integer invoiceContent;

    /**
     * trade.comm_only_key
     * 
     * INTEGER(10)
     *
     * @mbggenerated
     */
    private Integer commOnlyKey;

    /**
     * trade.province_id
     * 
     * INTEGER(10)
     *
     * @mbggenerated
     */
    private Integer provinceId;

    /**
     * trade.city_id
     * 
     * INTEGER(10)
     *
     * @mbggenerated
     */
    private Integer cityId;

    /**
     * trade.area_id
     * 
     * INTEGER(10)
     *
     * @mbggenerated
     */
    private Integer areaId;

    /**
     * trade.trade_discount_type
     * 折扣方式
     * BIGINT(19)
     *
     * @mbggenerated
     */
    private Long tradeDiscountType;

    /**
     * trade.version
     * 版本号：1初始值 2已操作
     * INTEGER(10)
     *
     * @mbggenerated
     */
    private Integer version;

    /* @mbggenerated */
    public Long getId() {
        return id;
    }

    /* @mbggenerated */
    public void setId(Long id) {
        this.id = id;
    }

    /* @mbggenerated */
    public Long getMallId() {
        return mallId;
    }

    /* @mbggenerated */
    public void setMallId(Long mallId) {
        this.mallId = mallId;
    }

    /* @mbggenerated */
    public Long getSellerId() {
        return sellerId;
    }

    /* @mbggenerated */
    public void setSellerId(Long sellerId) {
        this.sellerId = sellerId;
    }

    /* @mbggenerated */
    public Long getPrice() {
        return price;
    }

    /* @mbggenerated */
    public void setPrice(Long price) {
        this.price = price;
    }

    /* @mbggenerated */
    public Integer getBuyCount() {
        return buyCount;
    }

    /* @mbggenerated */
    public void setBuyCount(Integer buyCount) {
        this.buyCount = buyCount;
    }

    /* @mbggenerated */
    public Long getDiscountPrice() {
        return discountPrice;
    }

    /* @mbggenerated */
    public void setDiscountPrice(Long discountPrice) {
        this.discountPrice = discountPrice;
    }

    /* @mbggenerated */
    public String getDiscountMess() {
        return discountMess;
    }

    /* @mbggenerated */
    public void setDiscountMess(String discountMess) {
        this.discountMess = discountMess == null ? null : discountMess.trim();
    }

    /* @mbggenerated */
    public Integer getStatus() {
        return status;
    }

    /* @mbggenerated */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /* @mbggenerated */
    public Integer getType() {
        return type;
    }

    /* @mbggenerated */
    public void setType(Integer type) {
        this.type = type;
    }

    /* @mbggenerated */
    public Date getGmtCreate() {
        return gmtCreate;
    }

    /* @mbggenerated */
    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    /* @mbggenerated */
    public Date getGmtModify() {
        return gmtModify;
    }

    /* @mbggenerated */
    public void setGmtModify(Date gmtModify) {
        this.gmtModify = gmtModify;
    }

    /* @mbggenerated */
    public String getAttribute() {
        return attribute;
    }

    /* @mbggenerated */
    public void setAttribute(String attribute) {
        this.attribute = attribute == null ? null : attribute.trim();
    }

    /* @mbggenerated */
    public Long getBuyUserId() {
        return buyUserId;
    }

    /* @mbggenerated */
    public void setBuyUserId(Long buyUserId) {
        this.buyUserId = buyUserId;
    }

    /* @mbggenerated */
    public Integer getIsMain() {
        return isMain;
    }

    /* @mbggenerated */
    public void setIsMain(Integer isMain) {
        this.isMain = isMain;
    }

    /* @mbggenerated */
    public Long getBuyItemId() {
        return buyItemId;
    }

    /* @mbggenerated */
    public void setBuyItemId(Long buyItemId) {
        this.buyItemId = buyItemId;
    }

    /* @mbggenerated */
    public Integer getBuyItemType() {
        return buyItemType;
    }

    /* @mbggenerated */
    public void setBuyItemType(Integer buyItemType) {
        this.buyItemType = buyItemType;
    }

    /* @mbggenerated */
    public Long getThirdPartyId() {
        return thirdPartyId;
    }

    /* @mbggenerated */
    public void setThirdPartyId(Long thirdPartyId) {
        this.thirdPartyId = thirdPartyId;
    }

    /* @mbggenerated */
    public Long getParentId() {
        return parentId;
    }

    /* @mbggenerated */
    public void setParentId(Long parentId) {
        this.parentId = parentId;
    }

    /* @mbggenerated */
    public String getLogisticsId() {
        return logisticsId;
    }

    /* @mbggenerated */
    public void setLogisticsId(String logisticsId) {
        this.logisticsId = logisticsId == null ? null : logisticsId.trim();
    }

    /* @mbggenerated */
    public String getLogisticsCompany() {
        return logisticsCompany;
    }

    /* @mbggenerated */
    public void setLogisticsCompany(String logisticsCompany) {
        this.logisticsCompany = logisticsCompany == null ? null : logisticsCompany.trim();
    }

    /* @mbggenerated */
    public Integer getLogisticsStatus() {
        return logisticsStatus;
    }

    /* @mbggenerated */
    public void setLogisticsStatus(Integer logisticsStatus) {
        this.logisticsStatus = logisticsStatus;
    }

    /* @mbggenerated */
    public String getTradeNo() {
        return tradeNo;
    }

    /* @mbggenerated */
    public void setTradeNo(String tradeNo) {
        this.tradeNo = tradeNo == null ? null : tradeNo.trim();
    }

    /* @mbggenerated */
    public String getOutTradeNo() {
        return outTradeNo;
    }

    /* @mbggenerated */
    public void setOutTradeNo(String outTradeNo) {
        this.outTradeNo = outTradeNo == null ? null : outTradeNo.trim();
    }

    /* @mbggenerated */
    public Integer getPayType() {
        return payType;
    }

    /* @mbggenerated */
    public void setPayType(Integer payType) {
        this.payType = payType;
    }

    /* @mbggenerated */
    public String getMessage() {
        return message;
    }

    /* @mbggenerated */
    public void setMessage(String message) {
        this.message = message == null ? null : message.trim();
    }

    /* @mbggenerated */
    public Integer getRefund() {
        return refund;
    }

    /* @mbggenerated */
    public void setRefund(Integer refund) {
        this.refund = refund;
    }

    /* @mbggenerated */
    public String getRefundReason() {
        return refundReason;
    }

    /* @mbggenerated */
    public void setRefundReason(String refundReason) {
        this.refundReason = refundReason == null ? null : refundReason.trim();
    }

    /* @mbggenerated */
    public Integer getNeedInvoice() {
        return needInvoice;
    }

    /* @mbggenerated */
    public void setNeedInvoice(Integer needInvoice) {
        this.needInvoice = needInvoice;
    }

    /* @mbggenerated */
    public Integer getInvoiceType() {
        return invoiceType;
    }

    /* @mbggenerated */
    public void setInvoiceType(Integer invoiceType) {
        this.invoiceType = invoiceType;
    }

    /* @mbggenerated */
    public Integer getInvoiceCategory() {
        return invoiceCategory;
    }

    /* @mbggenerated */
    public void setInvoiceCategory(Integer invoiceCategory) {
        this.invoiceCategory = invoiceCategory;
    }

    /* @mbggenerated */
    public String getInvoiceTitle() {
        return invoiceTitle;
    }

    /* @mbggenerated */
    public void setInvoiceTitle(String invoiceTitle) {
        this.invoiceTitle = invoiceTitle == null ? null : invoiceTitle.trim();
    }

    /* @mbggenerated */
    public Integer getInvoiceContent() {
        return invoiceContent;
    }

    /* @mbggenerated */
    public void setInvoiceContent(Integer invoiceContent) {
        this.invoiceContent = invoiceContent;
    }

    /* @mbggenerated */
    public Integer getCommOnlyKey() {
        return commOnlyKey;
    }

    /* @mbggenerated */
    public void setCommOnlyKey(Integer commOnlyKey) {
        this.commOnlyKey = commOnlyKey;
    }

    /* @mbggenerated */
    public Integer getProvinceId() {
        return provinceId;
    }

    /* @mbggenerated */
    public void setProvinceId(Integer provinceId) {
        this.provinceId = provinceId;
    }

    /* @mbggenerated */
    public Integer getCityId() {
        return cityId;
    }

    /* @mbggenerated */
    public void setCityId(Integer cityId) {
        this.cityId = cityId;
    }

    /* @mbggenerated */
    public Integer getAreaId() {
        return areaId;
    }

    /* @mbggenerated */
    public void setAreaId(Integer areaId) {
        this.areaId = areaId;
    }

    /* @mbggenerated */
    public Long getTradeDiscountType() {
        return tradeDiscountType;
    }

    /* @mbggenerated */
    public void setTradeDiscountType(Long tradeDiscountType) {
        this.tradeDiscountType = tradeDiscountType;
    }

    /* @mbggenerated */
    public Integer getVersion() {
        return version;
    }

    /* @mbggenerated */
    public void setVersion(Integer version) {
        this.version = version;
    }
}